<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="3.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns="http://www.w3.org/1999/xhtml"
               xmlns:java="com.uni.crawl.common.util.crawl"
               exclude-result-prefixes="java">

    <xsl:template match="/">
        <root>
            <xsl:for-each select="//result_type[contains(text(), 'video')]/../data">
                <articleList>
                    <articleId>
                        <xsl:value-of select="id"/>
                    </articleId>
                    <title>
                        <xsl:value-of select="string(title)"/>
                    </title>
                    <publishedAt>
                        <xsl:value-of select="pubdate"/>
                    </publishedAt>
                    <userNickName>
                        <xsl:value-of select="author"/>
                    </userNickName>
                    <detailUrl>
                        <xsl:value-of select="arcurl"/>
                    </detailUrl>
                </articleList>
            </xsl:for-each>
        </root>
    </xsl:template>

</xsl:transform>